<!--{template admin/header_tpl}-->

<div class="mainarea">
	<div class="maininner">
		<div class="tabs_header">
			<ul class="tabs">
				<li><a href="<!--{eval echo base_url()}-->admin/admin_brand/index/"><span>浏览品牌</span></a></li>
				<li class="null"><a href="<!--{eval echo base_url()}-->admin/admin_brand/add_brand/">添加品牌</a></li>
			</ul>
		</div>
<!--加载数据-->
		<form action="<!--{eval echo base_url()}-->admin/admin_brand/edit_brand/{$thevalue['bid']}" method="post" accept-charset="utf-8" enctype="multipart/form-data">
			<div class="bdrcontent">
				<table class="formtable" cellspacing="5" cellpadding="5">
					<tr>
						<th style="width:12em;">品牌名称</th>
						<td><input type="text" name="set[name]" value="{$thevalue[name]}" size="30"></td>
					</tr>
					<tr>
						<th>logo</th>
						<td><img src="{$thevalue[logourl]}" width="80"></td>
					</tr>
					<tr>
						<th>上传logo</th>
						<td><input type="file" name="logo" value="" id="image" size="20"></td>
					</tr>
					<tr>
						<th>首字母</th>
						<td><input type="text" name="set[firstletter]" value="{$thevalue[firstletter]}" id="firstletter" size="1" maxsize='1'>（请填写品牌首字母一个）</td>
					</tr>
					<tr>
						<th>分类</th>
						<td>
							<select name="set[catid]">
								<option value="0" >请选择分类</option>
								<!--{loop $category $cat}-->
									
									<option value="{$cat[catid]}" <!--{if $thevalue[catid] == $cat[catid]}--> selected <!--{/if}-->>{$cat[name]}</option>
								<!--{/loop}-->
							</select>
						</td>
					</tr>
					<tr>
						<th>公司</th>
						<td><input type="text" name="set[company]" value="{$thevalue[company]}" size="30"></td>
					</tr>
					<tr>
						<th>备注</th>
						<td><textarea name="set[note]" rows="8" cols="40">{$thevalue[note]}</textarea></td>
					</tr>
				</table>
			</div>
		<div class="footactions">
		<input type="submit" name="thevaluesubmit" value="提交" class="submit">
		</div>
		</form>
	</div>
</div>
<div class="side">
	<!--{template admin/side}-->
</div>
<!--{template admin/footer_tpl}-->